<?
session_start();
include('../admin/bd.php');
Conectar();
$result=mysql_query("SELECT code, activacion FROM products WHERE activacion='".$_POST[n_activacion]."' and code='".$_POST[code_act]."'");
if (mysql_fetch_row($result)==true){	
$_SESSION[code_promotion]=$_POST[activacion];
}else{
$_SESSION[promotion_msm]='no';
}
Desconectar();
header('Location: ../products.php?code='.$_POST[code]);
?>